﻿using System;
using System.Collections.Generic;
using YJKSparseDistance.ControlLayer;
using YJKSparseDistance.ModelLayer;
using YJKSparseDistance.ViewLayer;
using YJKSparseDisOfRoom.ControlLayer;
using YJKSparseDisOfRoom.Properties;

namespace YJKSparseDisOfRoom.ViewLayer
{
	public class EvacuationDistanceViewLayerLinker
	{
		public void ShowResults(List<AreaCheckResultPacker> inputResults)
		{
			List<List<AreaCheckResultPacker>> input = new List<List<AreaCheckResultPacker>>();
			input = EvacuationDistanceArch.GroupResult(inputResults);
			this.m_useResultForm = new ResultForm(input, Resources.str_ResultFormText, YJKSparseDisOfRoom.ControlLayer.TempleCmd.RevitHandle, YJKSparseDisOfRoom.ControlLayer.TempleCmd.UseUiDocument, Resources.str_UseGuid);
			this.m_useLoopManger = new LoopMangerNoneSwitch_EvacuationDistance(YJKSparseDisOfRoom.ControlLayer.TempleCmd.UseUiDocument, this.m_useResultForm, YJKSparseDisOfRoom.ControlLayer.TempleCmd.RevitHandle, null, Resources.str_UseGuid);
			this.m_useLoopManger.DoLoopWork();
		}

		private LoopMangerNoneSwitch_EvacuationDistance m_useLoopManger;

		private ResultForm m_useResultForm;
	}
}
